	//获取Cookie中的值
	function getCookie(name){
	    var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
	    if(arr != null) return unescape(arr[2]); 
		return null;
	}
	
	//设置Cookie，把值放入Cookie中
	function setCookie(name,value){
	    var Days = 20; //此 cookie 将被保存 20 天
	    var exp  = new Date();
	    exp.setTime(exp.getTime() + Days*24*60*60*1000);
	    document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString()+";path=/;domain=.kylinet.com";
	}
	
	//删除Cookie值
	function delCookie(name){
	    var exp = new Date();
	    exp.setTime(exp.getTime() - 1);
	    var cval = getCookie(name);
	    if(cval != null){
			document.cookie = name + "="+cval+";expires="+exp.toGMTString()+";path=/;domain=.kylinet.com";
		} 	
	}
	
	//案例调用
	function getCase(id,url){
		setCookie("caseId",id);
		window.open(url);
	}
	function openCase(){
		var caseId = getCookie("caseId");
		if(caseId!=null && caseId.length>0){
			creatCaseContent(caseId);
			delCookie("caseId");
		}
	};
	